﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;

namespace Pear.Core.SeedData
{
    /// <summary>
    /// 站点信息表种子数据 <see cref="SiteInfo"/>
    /// </summary>
    public class SiteInfoSeedData : IEntitySeedData<SiteInfo>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SiteInfo> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
               new SiteInfo()
               {
                    Id = 1, Avatar = "https://thirdqq.qlogo.cn/g?b=sdk&k=Z1t6YCakOQ2Q3MQOficzY3g&s=640&t=1613218953", NickName = "奕轩", Domain = "Https://www.yxsaid.com", Slogan = "冰冻三尺，非一日之寒！",Describe = "一个.NET开发者苦逼记录！", Notice = "足够优秀，再大方拥有！"
               }
            };
        }
    }
}